package 函数式编程

object FunParameter {
  def main(args: Array[String]): Unit = {
    def plus(x: Int) = 3 + x

    val result1 = Array(1, 2, 3, 4).map(plus)
    print(result1.mkString(","))
  }

}
